﻿using Okra.Navigation;
using System;
using System.Collections.Generic;
using System.Text;

namespace Okra.Tests.Mocks
{
    public class MockNavigationEntry : INavigationEntry
    {
        // *** Fields ***

        private IEnumerable<object> pageElements;

        // *** Constructors ***

        public MockNavigationEntry(string pageName)
            :this (pageName, new object[0])
        {
        }

        public MockNavigationEntry(string pageName, IEnumerable<object> pageElements)
        {
            this.PageName = pageName;
            this.pageElements = pageElements;
        }

        // *** Properties ***

        public object Arguments
        {
            get;
            private set;
        }

        public string PageName
        {
            get;
            private set;
        }

        // *** Methods ***

        public virtual IEnumerable<object> GetElements()
        {
            return pageElements;
        }
    }
}
